export default {
    data() {
        return {
            imgs: [],
            lists:[],
            openid:"",
        }
    },
    components: {
    },
    methods: {
        godetail(id, item) {
            if (id == 1) {
                this.$router.push({ path: "/payDetail", query: { id: item } })
            } else if (id == 2) {
                this.$router.push({ path: "/rechargeDetail", query: { id: item } })
            }
        },
        getRecord() {
            this.axios.get('/member/consume', {
                params: {
                    openid: this.openid,
                    limit:10,
                    offset:0,
                }
            }).then(res => {
                this.lists=res.data.datas;
                console.log(res)
            }, err => {
                console.log(err)
            })
        }

    },
    mounted() {
    },
    created() {
        this.openid = sessionStorage.getItem("openId")
        this.getRecord();
    },
}